package day12;

public class Dog extends Pet {
    private String strain;

    public Dog(String name, int health, int love, String strain) {
        super(name, health, love);
        this.strain = strain;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("宠物的品种:"+this.strain);
    }

    @Override
    public void eat() {
        System.out.println("狗吃骨头，喜爱度增加");
        super.love+=20;
    }

    @Override
    public void toHospital() {
        System.out.println("狗去医院");
        super.health+=20;
    }
    public void  jiefeipan(){
        System.out.println("接飞盘");
    }
}
